/* 仪表板布局 */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    gap: 20px;
}

/* 侧边栏样式 */
.dashboard-sidebar {
    width: 240px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 0;
    margin: 4px 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 12px;
}

.sidebar-menu li a i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu li.active a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateX(4px);
}

.sidebar-menu li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateX(2px);
}

/* 主要内容区域 */
.dashboard-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.content-header h2 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-header h2 i {
    color: #667eea;
}

.header-subtitle {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

/* 个人信息卡片 */
.profile-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-avatar {
    position: relative;
    width: 140px;
    height: 140px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.edit-avatar {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.edit-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    margin: 0 0 8px 0;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.user-id {
    color: #666;
    margin: 0 0 20px 0;
    font-size: 16px;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    min-width: 80px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.edit-profile-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 游戏账号卡片 */
.game-account-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-account-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 账号信息显示 */
.account-info {
    margin-top: 20px;
}

.account-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.account-item:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.account-details {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.account-text h4 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.uid-display {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.uid-display span {
    color: #667eea;
    font-weight: 600;
}

.account-actions {
    display: flex;
    gap: 12px;
}

.unbind-account-btn {
    padding: 8px 16px;
    background: #ff6b6b;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.unbind-account-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.unbind-account-btn i {
    font-size: 12px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.empty-state p {
    margin: 0 0 20px 0;
    font-size: 16px;
}

/* 卡片头部样式 */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-header h3 {
    margin: 0;
    font-size: 24px;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h3 i {
    color: #667eea;
}

.bind-account-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.bind-account-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* 用户头像下拉菜单 */
.user-profile {
    position: relative;
}

.user-avatar {
    position: relative;
    cursor: pointer;
}

.user-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-avatar:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-header img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 12px;
}

.user-info h4 {
    margin: 0 0 4px 0;
    color: #333;
    font-size: 16px;
}

.user-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu li a i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    color: #667eea;
}

.dropdown-menu li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
        padding: 10px;
    }

    .dashboard-sidebar {
        width: 100%;
        order: 2;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-stats {
        justify-content: center;
        gap: 20px;
    }

    .edit-profile-btn {
        width: 100%;
        justify-content: center;
    }

    .level-details {
        flex-direction: column;
        gap: 20px;
    }

    .level-display {
        justify-content: center;
    }
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 消息提示 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.message.show {
    transform: translateX(0);
}

.message.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.message.error {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

/* 游戏账号列表 */
.account-item {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
}

.account-info {
    flex: 1;
}

.game-uid {
    font-weight: 600;
    color: #333;
}

/* 响应式表单 */
@media (max-width: 768px) {
    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-danger {
        width: 100%;
    }
}

/* 头像选择样式 */
.avatar-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.avatar-option {
    width: 80px;
    height: 80px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.avatar-option:hover {
    border-color: rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* 响应式头像选择 */
@media (max-width: 768px) {
    .avatar-selection {
        grid-template-columns: repeat(3, 1fr);
    }

    .avatar-option {
        width: 60px;
        height: 60px;
    }
}

/* 我的帖子卡片样式 */
.my-posts-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.my-posts-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.post-actions {
    display: flex;
    gap: 12px;
}

.refresh-posts-btn {
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.refresh-posts-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.create-post-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.create-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.posts-container {
    margin-top: 20px;
}

.posts-filter {
    margin-bottom: 20px;
}

.sort-select {
    padding: 8px 12px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.posts-list {
    min-height: 200px;
}

.loading-posts {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading-posts i {
    font-size: 32px;
    margin-bottom: 12px;
    color: #667eea;
}

.post-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.post-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
    margin-right: 16px;
}

.post-actions-menu {
    display: flex;
    gap: 8px;
}

.post-action-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.edit-post-btn {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.edit-post-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.delete-post-btn {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.delete-post-btn:hover {
    background: rgba(244, 67, 54, 0.2);
}

.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-content {
    color: #333;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.posts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 20px 0;
}

.prev-page,
.next-page {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-page:hover:not(:disabled),
.next-page:hover:not(:disabled) {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.prev-page:disabled,
.next-page:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #666;
    font-size: 14px;
}

.empty-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-posts i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-posts p {
    margin: 0;
    font-size: 16px;
}

/* 编辑帖子模态窗口样式 */
#editPostModal .modal-content {
    max-width: 600px;
}

#editPostModal textarea {
    resize: vertical;
    min-height: 120px;
}

/* 删除确认模态窗口样式 */
#deletePostModal .modal-content {
    max-width: 400px;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

/* 响应式帖子样式 */
@media (max-width: 768px) {
    .post-header {
        flex-direction: column;
        gap: 12px;
    }

    .post-title {
        margin-right: 0;
        font-size: 16px;
    }

    .post-actions-menu {
        align-self: flex-end;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: 12px;
    }

    .posts-pagination {
        flex-direction: column;
        gap: 12px;
    }
}

/* 等级与权限功能样式 */
.user-level-info {
    margin: 20px 0;
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.level-number {
    font-size: 16px;
    font-weight: 700;
}

.level-name {
    font-size: 14px;
}

.experience-bar {
    width: 200px;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.exp-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.exp-text {
    font-size: 12px;
    color: #666;
}

/* 经验历史样式 */
.history-container {
    max-height: 400px;
    overflow-y: auto;
}

.history-filters {
    margin-bottom: 20px;
}

.action-filter {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.history-list {
    min-height: 200px;
}

.loading-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.history-item:last-child {
    border-bottom: none;
}

.history-item:hover {
    background: rgba(102, 126, 234, 0.05);
}

.history-info {
    flex: 1;
}

.history-action {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.history-description {
    font-size: 14px;
    color: #666;
}

.history-amount {
    font-weight: 600;
    color: #667eea;
    margin-right: 16px;
}

.history-time {
    font-size: 12px;
    color: #999;
}

.history-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.history-pagination button {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.history-pagination button:not(:disabled):hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.page-info {
    color: #666;
    font-size: 14px;
}

/* 响应式等级样式 */
@media (max-width: 768px) {
    .level-details {
        flex-direction: column;
        gap: 20px;
    }

    .level-display {
        justify-content: center;
    }
}

/* 密码输入组样式 */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    padding-right: 40px;
}

.password-input-group .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.password-input-group .toggle-password:hover {
    color: #333;
}

/* 密码强度样式 */
.password-strength {
    margin-top: 12px;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    border-radius: 3px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-fill.weak {
    background: #f44336;
    width: 25%;
}

.strength-fill.medium {
    background: #ff9800;
    width: 50%;
}

.strength-fill.strong {
    background: #4caf50;
    width: 75%;
}

.strength-fill.very-strong {
    background: #2196f3;
    width: 100%;
}

.strength-text {
    font-size: 12px;
    color: #666;
}

/* 密码要求样式 */
.password-requirements {
    margin-top: 20px;
    padding: 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.password-requirements h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #666;
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

.password-requirements li i {
    font-size: 8px;
    color: #ccc;
}

.password-requirements li.valid i {
    color: #4caf50;
}

.password-requirements li.invalid i {
    color: #f44336;
}

.password-requirements li.optional i {
    color: #ff9800;
}

/* 修改密码按钮样式 */
#changePasswordBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

#changePasswordBtn.loading {
    pointer-events: none;
}

#changePasswordBtn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 修改密码模态窗口样式 */
#changePasswordModal .modal-content {
    max-width: 500px;
}

#changePasswordModal .form-group {
    margin-bottom: 24px;
}

#changePasswordModal .error-message {
    display: none;
    color: #f44336;
    font-size: 12px;
    margin-top: 4px;
    animation: shake 0.5s ease-in-out;
}

#changePasswordModal .error-message.show {
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* 游戏角色管理卡片 */
.characters-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.characters-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.character-actions {
    display: flex;
    gap: 12px;
}

.privacy-settings-btn {
    padding: 8px 16px;
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.privacy-settings-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.5);
    transform: translateY(-1px);
}

.add-character-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.add-character-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.characters-container {
    margin-top: 24px;
}

.characters-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.loading-characters {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-characters i {
    font-size: 24px;
    margin-bottom: 12px;
    color: #667eea;
}

.no-characters {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

.character-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.character-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 16px;
}

.character-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.character-info p {
    margin: 4px 0;
    color: #666;
    font-size: 14px;
}

.character-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.btn-edit-character,
.btn-delete-character {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-edit-character {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.btn-edit-character:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.btn-delete-character {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.btn-delete-character:hover {
    background: rgba(220, 53, 69, 0.2);
    transform: scale(1.1);
}

/* 隐私设置表单样式 */
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 12px 0;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.05);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: #fff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .characters-list {
        grid-template-columns: 1fr;
    }
    
    .character-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .privacy-settings-btn,
    .add-character-btn {
        width: 100%;
        justify-content: center;
    }
    
    .character-card {
        padding: 16px;
    }
    
    .character-avatar {
        width: 60px;
        height: 60px;
    }
    
    .character-info h4 {
        font-size: 16px;
    }
    
    .character-info p {
        font-size: 12px;
    }
}